import { http } from './index'

// ###########################
//
// 交换-监控相关接口
//
// ###########################

/**
 * 查询列表-MQ监控
 * @param {Object} params
 */
export function getMqMonitorList (params) {
  return http.post('exchanger/ExchangeMqInfo/page', params)
}

/**
 * 根据id返回信息-MQ监控
 * @param {String} id
 */
export function getMqMonitorInfoById (id) {
  return http.get(`exchanger/ExchangeMqInfo/getInfo/${id}`)
}

/**
 * 查询列表-暂存监控
 * @param {Object} params
 */
export function getMqCacheList (params) {
  return http.post('exchanger/ExchangeMqCache/page', params)
}

/**
 * 根据id返回信息-暂存监控
 * @param {String} id
 */
export function getMqCacheInfoById (id) {
  return http.get(`exchanger/ExchangeMqCache/getInfo/${id}`)
}

/**
 * 根据id重发-暂存监控
 * @param {String} id
 */
export function sendMqCacheById (id) {
  return http.get(`exchanger/ExchangeMqCache/sendMqCache/${id}`)
}

/**
 * 查询列表-交换日志
 * @param {Object} params
 */
export function getExchangeLogList (params) {
  return http.post('exchanger/ExchangeLog/page', params)
}

/**
 * 查询列表-交换作业监控
 * @param {Object} params
 */
export function getJobMonitorList (params) {
  return http.post('exchanger/ExchangeJobMonitor/page', params)
}